package top.revery.api.entity.payWallet;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author denghao
 * @title
 * @package  支付宝提现
 * @date 2019/12/23 17:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@MappedSuperclass
@Entity
@Table(name = "aliay_bd")
public class BaseAliayBD {


    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;
    @Column(columnDefinition = "bigint(16) not null comment '用户'")
    protected Long userId;
    @Column(columnDefinition = "varchar(32) null comment '收款人姓名'")
    private String name;
    @Column(columnDefinition = "varchar(32) null comment '收款人支付宝账户'")
    private String account;
    @Column(columnDefinition = "varchar(32) null comment '手机号码 '")
    private String telephone;

    @Column(columnDefinition = "varchar(32) null comment '提现的金额'")
    private BigDecimal money;
    @Column(columnDefinition = "tinyint(1) NULL comment '状态 0待审核,1已审核,2拒绝'")
    protected Integer type;

    @Column(columnDefinition = "varchar(32) null comment '审核人'")
    private String auditor;
    @Column(columnDefinition = "varchar(255) null comment '备注'")
    private String mark;

    /*
     *    审核时间
     * 自动值添加值，不能修改
     * */
    @Column(columnDefinition="TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP comment '审核时间'",insertable = false)
    protected Timestamp addTime;

}
